//var app = angular.module("myApp", ["ngLoadScript"]);
//app.controller("myCon", function() {});
//var app = angular.module("myApp", []);
var obj2 = {
	"T1467284926140": [{
		"postid": "PHOT238H6000100A",
		"hasCover": false,
		"hasHead": 1,
		"replyCount": 651,
		"hasImg": 1,
		"digest": "",
		"hasIcon": false,
		"docid": "9IG74V5H00963VRO_C35LMBE1bjlishidaiupdateDoc",
		"title": "长春一公园内百万囍字拼成汽车 街头吸睛",
		"order": 1,
		"priority": 256,
		"lmodify": "2016-10-12 08:40:32",
		"boardid": "photoview_bbs",
		"photosetID": "00AP0001|2204198",
		"template": "normal1",
		"votecount": 530,
		"skipID": "00AP0001|2204198",
		"alias": "yaowenspecial",
		"skipType": "photoset",
		"cid": "C1348647991705",
		"hasAD": 1,
		"imgextra": [{
			"imgsrc": "http://cms-bucket.nosdn.127.net/234c7404aaa846fbb11b7ad34bc54af820161012083943.jpeg"
		}, {
			"imgsrc": "http://cms-bucket.nosdn.127.net/b9e22b44a32f444486b99b73f9084a0320161012072958.jpeg"
		}],
		"source": "网易原创",
		"ename": "yaowenspecial",
		"imgsrc": "http://cms-bucket.nosdn.127.net/f02f5feb44a949d2a182a3e26986c17620161012083943.jpeg",
		"tname": "精选",
		"ptime": "2016-10-12 07:30:10"
	}, {
		"url_3w": "http://news.163.com/16/1012/01/C3504D8V00014AED.html",
		"postid": "C3504D8V00014AED",
		"votecount": 941,
		"replyCount": 1767,
		"ltitle": "中央巡视组:天津政治生态遭破坏 圈子文化不绝",
		"digest": "中央巡视四省市“回头看”反馈情况公布均收到领导干部问题线索十八届中央第十轮巡视反馈情况11日开始在中央纪委监察部网站向社会公布。当天公布了本轮巡视对天津、江西、",
		"url": "http://3g.163.com/news/16/1012/01/C3504D8V00014AED.html",
		"docid": "C3504D8V00014AED",
		"title": "中央巡视组:天津政治生态遭破坏 圈子文化不绝",
		"source": "北京晨报",
		"priority": 105,
		"lmodify": "2016-10-12 09:13:49",
		"imgsrc": "http://cms-bucket.nosdn.127.net/406a0e6d337c49a78c3214a5d0ab0f2f20161012021828.png",
		"subtitle": "",
		"boardid": "news3_bbs",
		"ptime": "2016-10-12 01:12:24"
	}, {
		"url_3w": "http://news.163.com/16/1012/00/C34SJPIE000146BE.html",
		"postid": "C34SJPIE000146BE",
		"votecount": 6179,
		"replyCount": 6651,
		"ltitle": "29省份明确陪产假期限 快来看看你能休多久？",
		"digest": "中新网北京10月12日电(记者李金磊)随着广东省出台新版计生条例，目前全国至少已有29个省份在当地新版计生条例中明确了陪产假的期限。其中，最短的陪产假有7天，最",
		"url": "http://3g.163.com/news/16/1012/00/C34SJPIE000146BE.html",
		"docid": "C34SJPIE000146BE",
		"title": "29省份明确陪产假期限 快来看看你能休多久？",
		"source": "中国新闻网",
		"priority": 100,
		"lmodify": "2016-10-12 09:13:53",
		"imgsrc": "http://cms-bucket.nosdn.127.net/c2727493e24d4ada9f0fa0f77734753920161012015624.png",
		"subtitle": "",
		"boardid": "news3_bbs",
		"ptime": "2016-10-12 00:05:00"
	}, {
		"url_3w": "http://news.163.com/16/1012/06/C35JTNL500014SEH.html",
		"postid": "C35JTNL500014SEH",
		"votecount": 3015,
		"replyCount": 3246,
		"ltitle": "温州民房倒塌致22死6伤续:涉案房东等四人被刑拘",
		"digest": "中新网10月12日消息，10月10日凌晨3时25分，温州鹿城区双屿街道中央涂村中央街4间6层农民自建房出现突发倒塌事故，事故造成22人死亡，6人受伤。据浙江省温",
		"url": "http://3g.163.com/news/16/1012/06/C35JTNL500014SEH.html",
		"docid": "C35JTNL500014SEH",
		"title": "温州民房倒塌致22死6伤续:涉案房东等四人被刑拘",
		"source": "澎湃新闻网",
		"priority": 99,
		"lmodify": "2016-10-12 09:13:56",
		"imgsrc": "http://cms-bucket.nosdn.127.net/c43f7cae936f4f0cb9136a592677727b20161012074951.jpeg",
		"subtitle": "",
		"boardid": "news3_bbs",
		"ptime": "2016-10-12 06:56:00"
	}, {
		"url_3w": "http://news.163.com/16/1012/01/C3510V0G00014AEE.html",
		"postid": "C3510V0G00014AEE",
		"votecount": 9417,
		"replyCount": 9807,
		"ltitle": "12日起支付宝提现正式收费 超额度收0.1%服务费",
		"digest": "今日起，支付宝提现也要收服务费了。尽管有了微信支付在收费上先行先试，不过对习惯了第三方支付免费服务的用户来说，依旧需要好好消化一番：支付宝中究竟哪些业务收费？余",
		"url": "http://3g.163.com/news/16/1012/01/C3510V0G00014AEE.html",
		"docid": "C3510V0G00014AEE",
		"title": "12日起支付宝提现正式收费 超额度收0.1%服务费",
		"source": "华龙网",
		"priority": 99,
		"lmodify": "2016-10-12 09:14:00",
		"imgsrc": "http://cms-bucket.nosdn.127.net/66175d35fc6c4ce59961af9ebda710e320161012020043.png",
		"subtitle": "",
		"boardid": "news3_bbs",
		"ptime": "2016-10-12 01:24:57"
	}, {
		"postid": "PHOT238HJ000100A",
		"votecount": 10998,
		"replyCount": 11494,
		"skipID": "00AP0001|2204211",
		"digest": "",
		"skipType": "photoset",
		"docid": "9IG74V5H00963VRO_C35MP8N0bjlishidaiupdateDoc",
		"title": "宜家餐厅现相亲族扎堆占座 商家推限制令",
		"source": "网易原创",
		"imgextra": [{
			"imgsrc": "http://cms-bucket.nosdn.127.net/5986943a07b14a28a125c311c5ef8f3a20161012074852.jpeg"
		}, {
			"imgsrc": "http://cms-bucket.nosdn.127.net/39048b899d4444dbb7e87d48b9a73db820161012074852.jpeg"
		}],
		"priority": 98,
		"lmodify": "2016-10-12 09:14:06",
		"boardid": "photoview_bbs",
		"imgsrc": "http://cms-bucket.nosdn.127.net/83f5f580d31f440b8bed7500fc9ab14620161012074851.jpeg",
		"photosetID": "00AP0001|2204211",
		"ptime": "2016-10-12 07:49:14"
	}, {
		"url_3w": "http://sports.163.com/16/1012/00/C34TECV800058780.html",
		"postid": "C34TECV800058780",
		"votecount": 98549,
		"replyCount": 103627,
		"ltitle": "足协领导评价高洪波:辞职很有担当 但也属于正常",
		"digest": "网易体育成金朝10月12日塔什干报道：国足0-2输给乌兹别克之后，高洪波在赛后发布会上主动辞职，但他也提到足协领导赛前曾找他谈话，明确表示球队成绩不好交流需要负",
		"url": "http://3g.163.com/sports/16/1012/00/C34TECV800058780.html",
		"docid": "C34TECV800058780",
		"title": "足协领导评价高洪波:辞职很有担当 但也属于正常",
		"source": "网易体育",
		"priority": 98,
		"lmodify": "2016-10-12 09:14:11",
		"imgsrc": "http://cms-bucket.nosdn.127.net/3127d337ec384f5c889b35233a3930dd20161012002926.jpeg",
		"subtitle": "",
		"boardid": "sports2_bbs",
		"ptime": "2016-10-12 00:26:24"
	}, {
		"url_3w": "http://news.163.com/16/1012/09/C35RD8TU0001875N.html",
		"postid": "C35RD8TU0001875N",
		"votecount": 0,
		"replyCount": 0,
		"ltitle": " 连续两天重要会议 为啥这四位政治局常委参加？",
		"digest": "事实证明，上班看《人民日报》、挤出时间看《新闻联播》是非常有必要的。政知局10月10日在《人民日报》第四版看到了这篇文章当时就觉得应该会有点什么故事。果然，10",
		"url": "http://3g.163.com/news/16/1012/09/C35RD8TU0001875N.html",
		"docid": "C35RD8TU0001875N",
		"title": " 连续两天重要会议 为啥这四位政治局常委参加？",
		"source": "北青网-北京青年报",
		"priority": 96,
		"lmodify": "2016-10-12 09:21:18",
		"imgsrc": "http://cms-bucket.nosdn.127.net/87d736a794884678b1ac4e4fa51fe31d20161012091332.jpeg",
		"subtitle": "",
		"boardid": "news_guonei8_bbs",
		"ptime": "2016-10-12 09:10:04"
	}, {
		"url_3w": "http://news.163.com/16/1012/08/C35QN8RP000187V5.html",
		"postid": "C35QN8RP000187V5",
		"votecount": 322,
		"replyCount": 373,
		"ltitle": "张靓颖自曝曾警告卓伟别再给母亲打电话 否则没完",
		"digest": "昨晚张靓颖生日，一家三口团聚的场面让剧情瞬间逆转，今日凌晨，张靓颖接受了华西都市报和封面新闻的专访——这几天我过得很不好，既没有怎么睡觉也没有怎么吃东西。第一天",
		"url": "http://3g.163.com/news/16/1012/08/C35QN8RP000187V5.html",
		"docid": "C35QN8RP000187V5",
		"title": "张靓颖自曝曾警告卓伟别再给母亲打电话 否则没完",
		"source": "封面新闻",
		"priority": 96,
		"lmodify": "2016-10-12 09:15:25",
		"imgsrc": "http://cms-bucket.nosdn.127.net/c54acdd3c5034bd8bde1c1e6bed79c8220161012090157.png",
		"subtitle": "",
		"boardid": "news2_bbs",
		"ptime": "2016-10-12 08:58:03"
	}, {
		"url_3w": "http://news.163.com/16/1012/08/C35Q6ODD0001875P.html",
		"postid": "C35Q6ODD0001875P",
		"votecount": 1394,
		"replyCount": 1545,
		"ltitle": "成都三星note7依然有卖 店家:你诚心要我还有存货",
		"digest": "10月11日，三星宣布召回Note7手机持续了一个多月的三星GalaxyNote7“爆炸门”似乎终于要落下帷幕。10月11日，三星电子表示，将会要求全球的移动运",
		"url": "http://3g.163.com/news/16/1012/08/C35Q6ODD0001875P.html",
		"docid": "C35Q6ODD0001875P",
		"title": "成都三星note7依然有卖 店家:你诚心要我还有存货",
		"source": "封面新闻",
		"priority": 96,
		"lmodify": "2016-10-12 09:19:01",
		"imgsrc": "http://cms-bucket.nosdn.127.net/ef6dec822950407082b4b90c5bc5f7f920161012085232.jpeg",
		"subtitle": "",
		"boardid": "news_shehui7_bbs",
		"ptime": "2016-10-12 08:49:02"
	}, {
		"url_3w": "http://news.163.com/16/1012/08/C35NE7AE0001875P.html",
		"postid": "C35NE7AE0001875P",
		"votecount": 9573,
		"replyCount": 10257,
		"ltitle": "揭\"防出轨\"软件:黑市卖到上万元 安装容易卸载难",
		"digest": "有人用它来捉渣男、逮小三，称它为“防出轨”软件;有人则将它用于商业竞争之中。如果有人在你的手机上安装这款软件并绑定自己的手机，那么，你手机上的短信、录音、照片、",
		"url": "http://3g.163.com/news/16/1012/08/C35NE7AE0001875P.html",
		"docid": "C35NE7AE0001875P",
		"title": "揭\"防出轨\"软件:黑市卖到上万元 安装容易卸载难",
		"source": "环球时报-环球网",
		"priority": 96,
		"lmodify": "2016-10-12 09:15:49",
		"imgsrc": "http://cms-bucket.nosdn.127.net/8e865b7666ce48a1a02b8bc96fe041bb20161012081017.jpeg",
		"subtitle": "",
		"boardid": "news_shehui7_bbs",
		"ptime": "2016-10-12 08:00:41"
	}, {
		"postid": "PHOTIMLP000300AJ",
		"votecount": 2875,
		"replyCount": 2989,
		"skipID": "00AJ0003|613049",
		"digest": "",
		"skipType": "photoset",
		"docid": "9IG74V5H00963VRO_C35NDCMPgaorrupdateDoc",
		"title": "王宝强豪车换成普通车 收工后独自回家",
		"source": "网易原创",
		"imgextra": [{
			"imgsrc": "http://cms-bucket.nosdn.127.net/c28ffda78092475b954fdff27aff44e520161012080005.jpeg"
		}, {
			"imgsrc": "http://cms-bucket.nosdn.127.net/d97f9268e4f64cd1a46b829bd4ba89b420161012080005.jpeg"
		}],
		"priority": 95,
		"lmodify": "2016-10-12 09:16:01",
		"boardid": "ent2_bbs",
		"imgsrc": "http://cms-bucket.nosdn.127.net/2eaea45557144e258c32bc5198c2834c20161012080004.jpeg",
		"photosetID": "00AJ0003|613049",
		"ptime": "2016-10-12 08:00:14"
	}, {
		"url_3w": "http://news.163.com/16/1012/07/C35LTDQN00014SEH.html",
		"postid": "C35LTDQN00014SEH",
		"votecount": 1,
		"replyCount": 5,
		"ltitle": "海南局地将迎来较强降雨 北方大部今起升温",
		"digest": "中国天气网讯今天（12日）开始，海南等地将迎来一次较强降雨过程，雷州半岛、海南岛东部和南部的部分地区有暴雨，局地有大暴雨。同时，西藏、青海等地依旧是阴雨（雪）连",
		"url": "http://3g.163.com/news/16/1012/07/C35LTDQN00014SEH.html",
		"docid": "C35LTDQN00014SEH",
		"title": "海南局地将迎来较强降雨 北方大部今起升温",
		"source": "中国天气网",
		"priority": 95,
		"lmodify": "2016-10-12 09:16:09",
		"imgsrc": "http://cms-bucket.nosdn.127.net/027e78ba75124fa4b1ef90839dbb631220161012082952.jpeg",
		"subtitle": "",
		"boardid": "news3_bbs",
		"ptime": "2016-10-12 07:00:00"
	}, {
		"url_3w": "http://news.163.com/16/1012/07/C35MFTK8000187V2.html",
		"postid": "C35MFTK8000187V2",
		"votecount": 1996,
		"replyCount": 2132,
		"ltitle": "陕西\"毒豆芽\"渎职案多名官员被撤诉 忧仕途受阻",
		"digest": "近日，多名涉“毒豆芽”案的陕西官员告诉澎湃新闻，部分官员的上诉和申诉陆续有了结果。陕西省榆林市五名因“查处毒豆芽不力”被控食品监管渎职罪的官员，已收到法院的撤诉",
		"url": "http://3g.163.com/news/16/1012/07/C35MFTK8000187V2.html",
		"docid": "C35MFTK8000187V2",
		"title": "陕西\"毒豆芽\"渎职案多名官员被撤诉 忧仕途受阻",
		"source": "澎湃新闻网",
		"priority": 94,
		"lmodify": "2016-10-12 09:16:13",
		"imgsrc": "http://cms-bucket.nosdn.127.net/7b9068ff294f48cbabbbb4600e5a2a9c20161012080100.jpeg",
		"subtitle": "",
		"boardid": "news2_bbs",
		"ptime": "2016-10-12 07:44:08"
	}, {
		"url_3w": "",
		"postid": "C35LU90L0511860C",
		"votecount": 1,
		"replyCount": 3,
		"ltitle": "华人科学家文小刚获凝聚态物理最高奖巴克利奖",
		"digest": "撰文潘颖赛先生讯美国当地时间10月11日，美国物理学会宣布，将2017年OliverE.Buckley奖颁发给美国麻省理工学院的文小刚教授和加州理工学院的Ale",
		"url": "http://115.236.125.97:7123/weChat/getArticle?id=2e7701c01b664f8e9bdff72d0b36de00_1",
		"docid": "C35LU90L0511860C",
		"title": "华人科学家文小刚获凝聚态物理最高奖巴克利奖",
		"source": "赛先生",
		"priority": 94,
		"lmodify": "2016-10-12 09:21:35",
		"imgsrc": "http://cms-bucket.nosdn.127.net/330fd961a8f9482da6bafb003380d5e120161012090025.jpeg",
		"subtitle": "",
		"boardid": "dy_wemedia_bbs",
		"ptime": "2016-10-12 07:34:30"
	}, {
		"url_3w": "http://news.163.com/16/1012/07/C35L0KH400014AEE.html",
		"postid": "C35L0KH400014AEE",
		"votecount": 681,
		"replyCount": 773,
		"ltitle": "揭秘福建电信诈骗村:村民在山上搭帐篷坐骗全国",
		"digest": "据广州日报报道福建省龙岩市新罗区是“国务院打击治理电信网络新型违法犯罪工作部际联席会议”确定的七个重点打击地区之一。新罗区主要以网络购物诈骗为主，诈骗分子被称为",
		"url": "http://3g.163.com/news/16/1012/07/C35L0KH400014AEE.html",
		"docid": "C35L0KH400014AEE",
		"title": "揭秘福建电信诈骗村:村民在山上搭帐篷坐骗全国",
		"source": "台海网",
		"priority": 94,
		"lmodify": "2016-10-12 09:16:17",
		"imgsrc": "http://cms-bucket.nosdn.127.net/9c2be0759f904027a4e3ccee00dfb56e20161012083644.jpeg",
		"subtitle": "",
		"boardid": "news3_bbs",
		"ptime": "2016-10-12 07:16:00"
	}, {
		"url_3w": "http://news.163.com/16/1012/06/C35H60BK0001875O.html",
		"postid": "C35H60BK0001875O",
		"votecount": 9167,
		"replyCount": 9811,
		"ltitle": "安徽职校女孩结识网友后被洗脑 要去参加\"圣战\"",
		"digest": "据安徽商报消息，一名职校女生认识了一名网友，对方向她宣传极端主义、恐怖主义思想，这名女生对这种思想产生兴趣，昨日，她涉嫌非法持有宣扬恐怖主义、极端主义物品罪在合",
		"url": "http://3g.163.com/news/16/1012/06/C35H60BK0001875O.html",
		"docid": "C35H60BK0001875O",
		"title": "安徽职校女孩结识网友后被洗脑 要去参加\"圣战\"",
		"source": "中安在线",
		"priority": 94,
		"lmodify": "2016-10-12 09:16:23",
		"imgsrc": "http://cms-bucket.nosdn.127.net/228aca988c304922a6883cfd6894b3ed20161012082641.jpeg",
		"subtitle": "",
		"boardid": "news_guoji2_bbs",
		"ptime": "2016-10-12 06:11:20"
	}, {
		"postid": "PHOT238H0000100A",
		"votecount": 1357,
		"replyCount": 1533,
		"skipID": "00AN0001|2204192",
		"digest": "",
		"skipType": "photoset",
		"docid": "9IG74V5H00963VRO_C34TDQSHlichongupdateDoc",
		"title": "宁夏煤矿爆炸2名失踪矿工无生还可能",
		"source": "网易原创",
		"imgextra": [{
			"imgsrc": "http://cms-bucket.nosdn.127.net/3bd5ce153a7f4a969bc64541e73e9f2b20161012002602.png"
		}, {
			"imgsrc": "http://cms-bucket.nosdn.127.net/47198c939c5a4710b16d10740af97ed720161012002600.png"
		}],
		"priority": 94,
		"lmodify": "2016-10-12 09:16:32",
		"boardid": "photoview_bbs",
		"imgsrc": "http://cms-bucket.nosdn.127.net/155f47fbfa394cbb84a39f30ee1f1d9820161012002601.png",
		"photosetID": "00AN0001|2204192",
		"ptime": "2016-10-12 00:26:05"
	}, {
		"url_3w": "http://ent.163.com/16/1012/07/C35M0B2G000380BQ.html",
		"postid": "C35M0B2G000380BQ",
		"votecount": 7207,
		"replyCount": 7510,
		"ltitle": "逆转!张靓颖母亲将撤诉 冯轲否认炒作婚礼不改期",
		"digest": "网易娱乐10月12日报道近日，张靓颖母亲不满准女婿冯轲的事情持续发酵，但张靓颖并没有打乱任何工作计划，11日晚九点，她如期出现在生日会现场。在台上张靓颖发表生日",
		"url": "http://3g.163.com/ent/16/1012/07/C35M0B2G000380BQ.html",
		"docid": "C35M0B2G000380BQ",
		"title": "逆转!张靓颖母亲将撤诉 冯轲否认炒作婚礼不改期",
		"source": "网易娱乐",
		"priority": 93,
		"lmodify": "2016-10-12 09:14:55",
		"imgsrc": "http://cms-bucket.nosdn.127.net/e35121f9ac8c4b95a975821399611bea20161012074048.jpeg",
		"subtitle": "",
		"boardid": "ent2_bbs",
		"ptime": "2016-10-12 07:35:38"
	}, {
		"url_3w": "http://news.163.com/16/1012/01/C350E9CU00014AED.html",
		"postid": "C350E9CU00014AED",
		"votecount": 6820,
		"replyCount": 7096,
		"ltitle": "韩春雨回应13位学者质疑:暂不便透露谁重复了实验",
		"digest": "新京报讯河北科技大学副教授韩春雨将NgAgo基因编辑技术论文发表在《自然-生物技术》已逾五个多月。这期间，多名国外科学家曾声明无法重复实验。近日，13名中国科学",
		"url": "http://3g.163.com/news/16/1012/01/C350E9CU00014AED.html",
		"docid": "C350E9CU00014AED",
		"title": "韩春雨回应13位学者质疑:暂不便透露谁重复了实验",
		"source": "新京报",
		"priority": 93,
		"lmodify": "2016-10-12 08:18:33",
		"imgsrc": "http://cms-bucket.nosdn.127.net/b260a07ddb5b4ba2a84064b29053716a20161012081455.jpeg",
		"subtitle": "",
		"boardid": "news3_bbs",
		"ptime": "2016-10-12 01:18:26"
	}]
}

app.controller("headCon2", function($scope) {
	// 保存顶部轮播图的对象
	$scope.headerObj2 = {};
	$scope.headerObj2 = obj2.T1467284926140[0];
	$scope.headArr2 = [];

	// 解析顶部轮播图数据
	var headerImgArr2 = $scope.headerObj2.imgextra;
	for(var k = 0; k < headerImgArr2.length; k++) {
		$scope.headArr2.push({
			"imgsrc": headerImgArr2[k].imgsrc,
			"title": $scope.headerObj2.title
		});
	}
	//给轮播图额外添加的2张图片对象
	$scope.first = $scope.headArr2[$scope.headArr2.length - 1];
	$scope.last = $scope.headArr2[0];
});
app.controller("homePageCon2", function($scope) {
	// 保存底下新闻的数据 (初始化)
	$scope.arr2 = [];
	var arr2 = obj2.T1467284926140;
	for(var i = 1; i < arr2.length; i++) {
		$scope.arr2.push(arr2[i]);
	}
});